/**
 * Created by Administrator on 2017/9/30.
 */
import React from 'react';
import css from './index.less';
import { observer } from 'mobx-react';
import PropTypes from 'prop-types';

@observer
export default class ImgRender extends React.Component {

  static propTypes = {
    mod: PropTypes.object,
  };

  render() {
    const { mod } = this.props;

    const imgProps = {
      className: css.image,
      style: mod.style,
      src: mod.src,
    };
    return (
      <img {...imgProps}/>
    );
  }
}
